package com.njwb.day03;

public class Test10 {
    public static void main(String[] args) {
        //数组的初始化赋值
        //int[] is=new int[]{1,2,3,4,5,6};
        int[] is={1,2,3,4,5,6};
        //取值
        System.out.println(is[2]);
        System.out.println(is[is.length-1]);
        //System.out.println(is[6]);
        //赋值
        is[2]=20;
        is[is.length-1]=60;
        System.out.println(is[2]);
        System.out.println(is[is.length-1]);
        //is[6]=9;
    }
}
